﻿using System;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCIEvents
{
    public class HCIEvent_GATT_Base_Event : HCIVendorSpecificEvent
    {
        private HCIVendorSpecificEventHostErrorCode _status;
        private ushort _connHandle;
        private byte _pduLen;
        private byte[] _pdu;

        public HCIVendorSpecificEventHostErrorCode Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public ushort ConnHandle
        {
            get { return _connHandle; }
            set { _connHandle = value; }
        }

        public byte PduLen
        {
            get { return _pduLen; }
            set { _pduLen = value; }
        }

        public byte[] Pdu
        {
            get { return _pdu; }
            set { _pdu = value; }
        }

        protected HCIEvent_GATT_Base_Event(HCIVendorSpecificEventHostErrorCode status,
            ushort connHandle, byte pduLen, byte[] value)
        {
            _status = status;
            _connHandle = connHandle;
            _pduLen = pduLen;
            _pdu = value;
        }
    }
}
